package  
{
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author hbb
	 */
	public class RegExpTest extends Sprite 
	{
		
		public function RegExpTest() 
		{
			test_HTML_A_Tag();
		}
		
		private function test_HTML_A_Tag():void 
		{
			var str:String = '<p id="eow-description" >Dodger from PressHearttoContinue interviews Mike &quot;HuskyStarcraft&quot; Lamond, a Starcraft commentator and generally awesome dude.<br /><br />This is an interview show in which those of gaming fame, nerdy fame, or general awesomeness discuss their work and do a generally tedious activity with Dodger.<br /><br />For more Husky, check the extended interview:<br /><a href="http://www.youtube.com/watch?v=W6xyeGOEiNk" target="_blank" title="http://www.youtube.com/watch?v=W6xyeGOEiNk" rel="nofollow" dir="ltr" class="yt-uix-redirect- link">http://www.youtube.com/watch?v=W6xyeGOEiNk</a><br /><br />HuskyStarcraft:<br /><a href="http://www.youtube.com/huskystarcraft" target="_blank" title="http://www.youtube.com/huskystarcraft" rel="nofollow" dir="ltr" class="yt-uix-redirect- link">http://www.youtube.com/huskystarcraft</a><br /><br />Produced by: Dodger Leigh<br /><a href="http://www.youtube.com/presshearttocontinue" target="_blank" title="http://www.youtube.com/presshearttocontinue" rel="nofollow" dir="ltr" class="yt-uix-redirect- link">http://www.youtube.com/presshearttocontinue</a><br /><br />Camera Operators:<br />Mike Schroeder, Brian Fisher<br /> <a href="http://www.youtube.com/thewarpzone" target="_blank" title="http://www.youtube.com/thewarpzone" rel="nofollow" dir="ltr" class="yt-uix-redirect-link">http://www.youtube.com/thewarpzone</a><br /><br />and Nathan Kitada<br /> <a href="http://www.youtube.com/countryclubpictures" target="_blank" title="http://www.youtube.com/countryclubpictures" rel="nofollow" dir="ltr" class="yt-uix-redirect-link">http://www.youtube.com/countryclubpictures</a><br /><br />Edited by: Erin Lee<br /> <a href="http://www.youtube.com/happileeerin" target="_blank" title="http://www.youtube.com/happileeerin" rel="nofollow" dir="ltr" class="yt-uix-redirect-link">http://www.youtube.com/happileeerin</a></p>';
			var reg:RegExp = /<a href="(http:\/\/.+?)".+?<\/a>/g;
			
			str = str.split('<br />').join('\n');
			
			str = str.replace( reg, '$1' );
			
			trace(str);
			
		}
		
		
		
	}

}